package top.yuzt.noticeserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author yuzt
 * @since 2024-05-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Groupmembers implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    @TableField("GroupID")
    private Integer groupid;

    @TableField("UserID")
    private Integer userid;


    @TableField("Role")
    private Integer role;

    public Groupmembers(Integer groupid,Integer userid,Integer role){
        this.groupid = groupid;
        this.userid = userid;
        this.role = role;
    }


    public Integer getGroupid() {
        return groupid;
    }

    public void setGroupid(Integer groupid) {
        this.groupid = groupid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }



}
